package com.hfh.newPattern;

/**
 * @Author hfh
 * @Date 2022 09 16 15 19
 **/
public class Client {
    public static void main(String[] args) {
        ItalyDessertFactory italyDessertFactory=new ItalyDessertFactory();
        Coffee coffee = italyDessertFactory.createCoffee();
        Dessert dessert = italyDessertFactory.createDessert();

        System.out.println(coffee.getName());
        dessert.show();
    }
}

